﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B31 RID: 2865
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MissionCustomValueList : IMessage<MissionCustomValueList>, IMessage, IEquatable<MissionCustomValueList>, IDeepCloneable<MissionCustomValueList>, IBufferMessage
	{
		// Token: 0x17002429 RID: 9257
		// (get) Token: 0x0600802C RID: 32812 RVA: 0x00155F4D File Offset: 0x0015414D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MissionCustomValueList> Parser
		{
			get
			{
				return MissionCustomValueList._parser;
			}
		}

		// Token: 0x1700242A RID: 9258
		// (get) Token: 0x0600802D RID: 32813 RVA: 0x00155F54 File Offset: 0x00154154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MissionCustomValueListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700242B RID: 9259
		// (get) Token: 0x0600802E RID: 32814 RVA: 0x00155F66 File Offset: 0x00154166
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MissionCustomValueList.Descriptor;
			}
		}

		// Token: 0x0600802F RID: 32815 RVA: 0x00155F6D File Offset: 0x0015416D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValueList()
		{
		}

		// Token: 0x06008030 RID: 32816 RVA: 0x00155F80 File Offset: 0x00154180
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValueList(MissionCustomValueList other) : this()
		{
			this.customValueList_ = other.customValueList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008031 RID: 32817 RVA: 0x00155FAA File Offset: 0x001541AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MissionCustomValueList Clone()
		{
			return new MissionCustomValueList(this);
		}

		// Token: 0x1700242C RID: 9260
		// (get) Token: 0x06008032 RID: 32818 RVA: 0x00155FB2 File Offset: 0x001541B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MissionCustomValue> CustomValueList
		{
			get
			{
				return this.customValueList_;
			}
		}

		// Token: 0x06008033 RID: 32819 RVA: 0x00155FBA File Offset: 0x001541BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MissionCustomValueList);
		}

		// Token: 0x06008034 RID: 32820 RVA: 0x00155FC8 File Offset: 0x001541C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MissionCustomValueList other)
		{
			return other != null && (other == this || (this.customValueList_.Equals(other.customValueList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008035 RID: 32821 RVA: 0x00155FFC File Offset: 0x001541FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.customValueList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008036 RID: 32822 RVA: 0x00156030 File Offset: 0x00154230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008037 RID: 32823 RVA: 0x00156038 File Offset: 0x00154238
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008038 RID: 32824 RVA: 0x00156041 File Offset: 0x00154241
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.customValueList_.WriteTo(ref output, MissionCustomValueList._repeated_customValueList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008039 RID: 32825 RVA: 0x00156068 File Offset: 0x00154268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.customValueList_.CalculateSize(MissionCustomValueList._repeated_customValueList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600803A RID: 32826 RVA: 0x001560A1 File Offset: 0x001542A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MissionCustomValueList other)
		{
			if (other == null)
			{
				return;
			}
			this.customValueList_.Add(other.customValueList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600803B RID: 32827 RVA: 0x001560CF File Offset: 0x001542CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600803C RID: 32828 RVA: 0x001560D8 File Offset: 0x001542D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.customValueList_.AddEntriesFrom(ref input, MissionCustomValueList._repeated_customValueList_codec);
				}
			}
		}

		// Token: 0x04003108 RID: 12552
		private static readonly MessageParser<MissionCustomValueList> _parser = new MessageParser<MissionCustomValueList>(() => new MissionCustomValueList());

		// Token: 0x04003109 RID: 12553
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400310A RID: 12554
		public const int CustomValueListFieldNumber = 1;

		// Token: 0x0400310B RID: 12555
		private static readonly FieldCodec<MissionCustomValue> _repeated_customValueList_codec = FieldCodec.ForMessage<MissionCustomValue>(10U, MissionCustomValue.Parser);

		// Token: 0x0400310C RID: 12556
		private readonly RepeatedField<MissionCustomValue> customValueList_ = new RepeatedField<MissionCustomValue>();
	}
}
